package org.jeecg.modules.product.risk.vo;

import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.modules.product.risk.entity.TbBaseDangerInvestigationReocrd;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;


/**
 * @Description: 隐患排查信息
 * @Author: jeecg-boot
 * @Date:   2024-05-07
 * @Version: V1.0
 */
@Data
@Schema(description="隐患排查信息")
public class TbBaseDangerInvestigationPage {

	/**主键*/
	@Schema(description = "主键")
    private String id;
	/**创建人*/
	@Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
	@Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@Schema(description = "所属部门")
    private String sysOrgCode;
	/**隐患等级*/
	@Excel(name = "隐患等级", width = 15, dicCode = "dangerLevel")
    @Dict(dicCode = "dangerLevel")
	@Schema(description = "隐患等级")
    private String dangerLevel;
	/**隐患来源*/
	@Excel(name = "隐患来源", width = 15, dicCode = "dangerSrc")
    @Dict(dicCode = "dangerSrc")
	@Schema(description = "隐患来源")
    private String dangerSrc;
	/**隐患治理类型*/
	@Excel(name = "隐患治理类型", width = 15, dicCode = "dangerManageType")
    @Dict(dicCode = "dangerManageType")
	@Schema(description = "隐患治理类型")
    private String dangerManageType;
	/**所属装置*/
	@Excel(name = "所属装置", width = 15, dictTable = "tb_base_risk_device", dicText = "name", dicCode = "id")
    @Dict(dictTable = "tb_base_risk_device", dicText = "name", dicCode = "id")
	@Schema(description = "所属装置")
    private String riskDeviceId;
	/**所属单元*/
	@Excel(name = "所属单元", width = 15, dictTable = "tb_base_risk_unit", dicText = "risk_unit_name", dicCode = "id")
    @Dict(dictTable = "tb_base_risk_unit", dicText = "risk_unit_name", dicCode = "id")
	@Schema(description = "所属单元")
    private String riskUnitId;
	/**隐患名称*/
	@Excel(name = "隐患名称", width = 15)
	@Schema(description = "隐患名称")
    private String dangerName;
	/**隐患描述*/
	@Excel(name = "隐患描述", width = 15)
	@Schema(description = "隐患描述")
    private String dangerDesc;
	/**隐患产生原因*/
	@Excel(name = "隐患产生原因", width = 15)
	@Schema(description = "隐患产生原因")
    private String dangerReason;
	/**资金*/
	@Excel(name = "资金", width = 15)
	@Schema(description = "资金")
    private Double cost;
	/**隐患治理期限*/
	@Excel(name = "隐患治理期限", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "隐患治理期限")
    private Date dangerManageDeadline;
	/**隐患状态*/
	@Excel(name = "隐患状态", width = 15, dicCode = "dangerState")
    @Dict(dicCode = "dangerState")
	@Schema(description = "隐患状态")
    private String dangerState;
	/**隐患类型*/
	@Excel(name = "隐患类型", width = 15, dicCode = "hazardDangerType")
    @Dict(dicCode = "hazardDangerType")
	@Schema(description = "隐患类型")
    private String hazardDangerType;
	/**登记人姓名*/
	@Excel(name = "登记人姓名", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Schema(description = "登记人姓名")
    private String registrant;
	/**控制措施*/
	@Excel(name = "控制措施", width = 15)
	@Schema(description = "控制措施")
    private String controlMeasures;
	/**管控措施*/
	@Excel(name = "管控措施", width = 15, dictTable = "tb_base_control_measures", dicText = "risk_measure_desc", dicCode = "id")
    @Dict(dictTable = "tb_base_control_measures", dicText = "risk_measure_desc", dicCode = "id")
	@Schema(description = "管控措施")
    private String riskMeasureId;
	/** 隐患排查记录*/
	@Excel(name = " 隐患排查记录", width = 15)
	@Schema(description = " 隐患排查记录")
    private String checkRecordId;
	/**登记时间*/
	@Excel(name = "登记时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "登记时间")
    private Date registTime;
	/**整改责任人姓名*/
	@Excel(name = "整改责任人姓名", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Schema(description = "整改责任人姓名")
    private String liablePerson;
	/**验收人*/
	@Excel(name = "验收人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Schema(description = "验收人")
    private String checkAcceptPerson;
	/**验收情况*/
	@Excel(name = "验收情况", width = 15)
	@Schema(description = "验收情况")
    private String checkAcceptComment;
	/**验收时间*/
	@Excel(name = "验收时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "验收时间")
    private Date checkAcceptTime;
	/**图片*/
	@Excel(name = "图片", width = 15)
	@Schema(description = "图片")
    private String img;
	/**删除状态*/
	@Excel(name = "删除状态", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
	@Schema(description = "删除状态")
    private String deleted;

	@ExcelCollection(name="隐患治理过程信息")
	@Schema(description = "隐患治理过程信息")
	private List<TbBaseDangerInvestigationReocrd> tbBaseDangerInvestigationReocrdList;

}
